<?php
/**
 * Created by PhpStorm.
 * User: hgq
 * Date: 16/6/15
 * Time: 上午9:35
 */
use yii\helpers\Url;

$web = Url::base();
?>
<script type="text/javascript" src="<?= $web ?>/js/swiper.animate.min.js"></script>
<script type="text/javascript" src="<?= $web ?>/js/swiper.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?= $web ?>/css/animate.css"/>
<link rel="stylesheet" type="text/css" href="<?= $web ?>/css/swiper.min.css"/>

<div class="row">
    <div class="col-lg-4">
        <div><span class="label label-info">产品小图</span></div>
        <?php if($goods_img!=null) {?>
            <img src="<?= $goods_img ?>" style="width: 18rem; height: 18rem;">
        <?php }?>
    </div>
    <div class="col-lg-8">
        <div><span class="label label-info">产品详图</span></div>
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <?php
                if($goods_img_list!=null){
                    foreach ($goods_img_list as $picture) {
                        ?>
                        <div class="swiper-slide">
                            <img src="<?= $picture['image_url'] ?>"
                                 style="width: 18rem; height: 18rem;">
                        </div>
                        <?php
                    }
                }
                ?>
            </div>
            <div class="swiper-pagination"></div>
        </div>
        <script>
            var swiper = new Swiper('.swiper-container', {
                pagination: '.swiper-pagination',
                initialSlide: 0,
                slidesPerView: 1,
                paginationClickable: true,
                spaceBetween: 0,
                width: 180,
            });
        </script>
    </div>
</div>
<br>
<div>
    <?php if($detail_html!=null) {?>
        <?= $detail_html ?>
    <?php } else {?>
        暂无详情描述
    <?php }?>
</div>

